//
//  BVMyOrderCell.h
//  BuyVegetables
//
//  Created by 叶思超 on 15/10/13.
//  Copyright (c) 2015年 叶思超. All rights reserved.
//

#import <UIKit/UIKit.h>
@class BVMyOrder;
@class BVMyOrderCell;
@protocol OrderCellDelegate <NSObject>
- (void)orderCell:(BVMyOrderCell *)cell deleteOrder:(BVMyOrder *)order;
- (void)orderCell:(BVMyOrderCell *)cell confirmOrder:(BVMyOrder *)order;
- (void)orderCell:(BVMyOrderCell *)cell nextOrder:(BVMyOrder *)order;
- (void)orderCell:(BVMyOrderCell *)cell confirmReceive:(BVMyOrder *)order;//取消确认订单
- (void)orderCell:(BVMyOrderCell *)cell cancelBtn:(BVMyOrder *)order;
@end
@interface BVMyOrderCell : UITableViewCell
/**
 *  创建cell
 */
+ (instancetype)cell;

// 删除订单
@property (weak, nonatomic) IBOutlet UIButton *deledButton;
// 确认订单
@property (weak, nonatomic) IBOutlet UIButton *confirmClick;
// 下一单
@property (weak, nonatomic) IBOutlet UIButton *nextOrder;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;

/**
 *  数据模型
 */
@property (nonatomic, strong) BVMyOrder *myOrder;
@property (nonatomic,assign) id<OrderCellDelegate>delegate;
@end
